ia64, pygrub: Allow command-line editing in Lilo boot loader
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 12:21:36 +0000 (13:21 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 12:21:36 +0000 (13:21 +0100)
On IA64 platform reset() function has one more parameter for Lilo
bootloader used by IA64 than for GRUB bootloader used for other
platforms.

Signed-off-by: Michal Novotny <minovotn@redhat.com>
tools/pygrub/src/pygrub

index 561bc7efe928561d582dec596a666cedab59f6e7..e43dcc2d9a62128e29fc151a494ca8f5a8a22e5e 100644 (file)
@@ -316,7 +316,11 @@ class Grub:
                 curline = len(img.lines) - 1
 
         if self.isdone:
-            origimg.reset(img.lines)
+           # Fix to allow pygrub command-line editing in Lilo bootloader (used by IA64)
+           if platform.machine() == 'ia64':
+              origimg.reset(img.lines, img.path)
+           else:
+              origimg.reset(img.lines)
 
     def edit_line(self, line):
         self.screen.erase()